<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>

	<body>
	</body>
	<script>
		class Adaptee {
			specificRequest() {
				return ' 德国标准的插头'
			}
		}
		class Target {
			constructor() {
				this.adaptee = new Adaptee()
			}
			request() {
				let info = this.adaptee.specificRequest()
				return `${info}->转换器 -> 中国标准的插头`
			}
		}

		//测试
		let target = new Target();
		target.request();
	</script>

</html>